package smlab.view.controller
{
	import flash.events.EventDispatcher;
	
	import smlab.interfaces.IController_SM;
	import smlab.view.ui.UIComponent_SM;
	
	/**
	 * UI 控制器父级
	 * @author simon
	 * 
	 */
	public class UIController_SM extends EventDispatcher implements IController_SM
	{
		protected var _view:UIComponent_SM;
		protected var _model:Object;
		
		public function UIController_SM()
		{
		}
		
		public function set view(ui:UIComponent_SM):void
		{
			_view=ui;
		}
		
		public function get view():UIComponent_SM
		{
			return _view;
		}
		
		public function set model(value:Object):void
		{
			_model=value;
		}
		
		public function get model():Object
		{
			return _model;
		}
		
		public function showView():void{
			_view.show();
		}
		
		public function hideView():void{
			_view.hide();
		}


	}
}